package ncut.shumei.service;

import ncut.shumei.dto.LoginRequest;
import ncut.shumei.dto.LoginResponse;
import ncut.shumei.dto.RegisterRequest;
import ncut.shumei.dto.UserDTO;
import ncut.shumei.entity.User;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface AuthService extends UserDetailsService {
    LoginResponse login(LoginRequest request);
    UserDTO register(RegisterRequest request);
    User validateToken(String token);
    String generateToken(String username);
} 